local BaseData = require("data.base.BaseData")
local SkillUnitData = class("SkillUnitData", BaseData)
local skill_res = require("config.skill_res")

local schema = {}
schema["id"] = {"number", 0}
schema["config"] = {"table", {}}
SkillUnitData.schema = schema

function SkillUnitData:ctor()
	SkillUnitData.super.ctor(self)
end

function SkillUnitData:update(id)
	local config = skill_res.get(id)
	assert(config, "can not found config in skill_res by = " .. id)
	self:setConfig(config)
	self:setId(id)
end

return SkillUnitData
